67 WDT_A_hold(WDT_A_BASE);
84 Comp_B_initParam initParam = {0};
85 initParam.positiveTerminalInput = COMP_B_INPUT0;
86 initParam.negativeTerminalInput = COMP_B_VREF;
87 initParam.powerModeSelect = COMP_B_POWERMODE_NORMALMODE;
88 initParam.outputFilterEnableAndDelayLevel = COMP_B_FILTEROUTPUT_DLYLVL1;
89 initParam.invertedOutputPolarity = COMP_B_NORMALOUTPUTPOLARITY;
90 Comp_B_init(COMP_B_BASE, &initParam);
100 Comp_B_configureReferenceVoltageParam refVoltageParam = {0};
101 refVoltageParam.supplyVoltageReferenceBase = COMP_B_VREFBASE1_5V;
102 refVoltageParam.lowerLimitSupplyVoltageFractionOf32 = 32;
103 refVoltageParam.upperLimitSupplyVoltageFractionOf32 = 32;
104 refVoltageParam.referenceAccuracy = COMP_B_ACCURACY_STATIC;
105 Comp_B_configureReferenceVoltage(COMP_B_BASE, &refVoltageParam);
112 Comp_B_clearInterrupt(COMP_B_BASE,
114 Comp_B_enableInterrupt(COMP_B_BASE,
118 Comp_B_enable(COMP_B_BASE);
121 __bis_SR_register(LPM4_bits + GIE);
132 #if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__)
133 #pragma vector=COMP_B_VECTOR
135 #elif defined(__GNUC__)
136 __attribute__((interrupt(COMP_B_VECTOR)))
141 Comp_B_toggleInterruptEdgeDirection(COMP_B_BASE);
144 Comp_B_clearInterrupt(COMP_B_BASE, CBIFG);
147 GPIO_toggleOutputOnPin(